package pl.edu.pw.perg.compinfodb.manager;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import pl.edu.pw.perg.compinfodb.dao.IFieldDAO;
import pl.edu.pw.perg.compinfodb.entities.Field;

public class FieldManager extends GenericManager<Field> implements
	IFieldManager {

	public static String ELEMENT_TYPE = "type";
	/* (non-Javadoc)
	 * @see pl.edu.pw.perg.compinfodb.manager.IFieldManager#findTypeFields(pl.edu.pw.perg.compinfodb.entities.ElementType)
	 */
	@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
	public List<Field> findFields(String property, Object value){
		return ((IFieldDAO) getGenericDAO()).findFields(property, value);
	}


}
